tests: Add a test which exercises --fsync=false
authorColin Walters <walters@verbum.org>
Wed, 18 Jun 2014 22:24:41 +0000 (18:24 -0400)
committerColin Walters <walters@verbum.org>
Wed, 18 Jun 2014 22:24:41 +0000 (18:24 -0400)
tests/test-basic.sh

index 0a9908deb836b8f1d40cf26e7814a951db4523db..e0e71329bb1b3f50cf8ca2f40bcda4e9cad0519e 100755 (executable)
@@ -328,3 +328,9 @@ if $OSTREE commit -b test2 -s "Attempt to commit a FIFO" 2>../errmsg; then
 fi
 echo "ok commit of fifo was rejected"
 
+cd ${test_tmpdir}
+rm -rf test2-checkout
+mkdir -p test2-checkout
+cd test2-checkout
+touch should-not-be-fsynced
+$OSTREE commit -b test2 -s "Unfsynced commit" --fsync=false